package com.ruoyi.eamp.service.impl;

import java.util.List;

import com.ruoyi.eamp.domain.vo.LogsAndListAndUseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampCarLogsMapper;
import com.ruoyi.eamp.domain.EampCarLogs;
import com.ruoyi.eamp.service.IEampCarLogsService;

/**
 * 车辆记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class EampCarLogsServiceImpl implements IEampCarLogsService 
{
    @Autowired
    private EampCarLogsMapper eampCarLogsMapper;

    /**
     * 查询车辆记录表
     * 
     * @param logsId 车辆记录表主键
     * @return 车辆记录表
     */
    @Override
    public EampCarLogs selectEampCarLogsByLogsId(Long logsId)
    {
        return eampCarLogsMapper.selectEampCarLogsByLogsId(logsId);
    }

    /**
     * 查询车辆记录表列表
     * 
     * @param eampCarLogs 车辆记录表
     * @return 车辆记录表
     */
    @Override
    public List<EampCarLogs> selectEampCarLogsList(EampCarLogs eampCarLogs)
    {
        return eampCarLogsMapper.selectEampCarLogsList(eampCarLogs);
    }

    /**
     * 新增车辆记录表
     * 
     * @param eampCarLogs 车辆记录表
     * @return 结果
     */
    @Override
    public int insertEampCarLogs(EampCarLogs eampCarLogs)
    {
        return eampCarLogsMapper.insertEampCarLogs(eampCarLogs);
    }

    /**
     * 修改车辆记录表
     * 
     * @param eampCarLogs 车辆记录表
     * @return 结果
     */
    @Override
    public int updateEampCarLogs(EampCarLogs eampCarLogs)
    {
        return eampCarLogsMapper.updateEampCarLogs(eampCarLogs);
    }

    /**
     * 批量删除车辆记录表
     * 
     * @param logsIds 需要删除的车辆记录表主键
     * @return 结果
     */
    @Override
    public int deleteEampCarLogsByLogsIds(Long[] logsIds)
    {
        return eampCarLogsMapper.updateEampCarLogsByLogsIds(logsIds);
    }

    /**
     * 删除车辆记录表信息
     * 
     * @param logsId 车辆记录表主键
     * @return 结果
     */
    @Override
    public int deleteEampCarLogsByLogsId(Long logsId)
    {
        return eampCarLogsMapper.updateEampCarLogsByLogsId(logsId);
    }

    @Override
    public List<LogsAndListAndUseVO> getlog(LogsAndListAndUseVO logsAndListAndUseVO) {

        return eampCarLogsMapper.getlog(logsAndListAndUseVO);
    }
}
